package com.toulezu.test.transaction;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RegisterService {

    @Autowired
    private UserService userService;

    @Transactional
    public int register() {

        try {
            userService.addUser();
        } catch (Exception e) {
        }

        return 1;

    }
}
